﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.VisualStudio.TestTools.UITesting;
using BackOffice.Context.UltiPro.BackOfficeUIMapClasses;
using Microsoft.VisualStudio.TestTools.UITesting.WinControls;

namespace BackOffice.Context.UltiPro.PageObjects
{
    /// <summary>
    /// Main UltiPro window
    /// </summary>
    public static class Login
    {
        private static BackOfficeUIMap UIMap
        {
            get
            {
                return new BackOfficeUIMap();
            }
        }

        public static WinWindow ULTIPROWindow
        {
            get
            {
                return UIMap.UIULTIPROWindow;
            }
        }

        public static WinEdit LoginCompanyCode
        {
            get
            {
                return UIMap.UILoginWindow.UIItemWindow.LoginCompanyCode;
            }
        }

        public static WinEdit LoginUserName
        {
            get
            {
                return  UIMap.UILoginWindow.UIItemWindow1.LoginName;
            }
        }

        public static WinEdit LoginPassword
        {
            get
            {
                return UIMap.UILoginWindow.UIItemWindow2.LoginPassword;
            }
        }

        public static WinButton OKButton
        {
            get
            {
                return UIMap.UILoginWindow.UILoginClient.LoginOKButton;
            }
        }

        public static WinButton SelectButton
        {
            get
            {
                return UIMap.UISelectacompanyWindow.UIItemWindow2.UISelectacompanyClient.CompanySelectorSelectButton;
            }
        }
    }
}
